﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GWModflow.FileLayers.MT3DMS
{

    public static  class FileNameConfigHelper
    {

        /// <summary>
        /// 返回MT3D各个污染物对应的存放生成文件的文件夹的  名称
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        public static string GetMT3DResultDirectoryName(int index)
        {
            string directoryName = "";

            if (index >= 0 && index <= 9)
            {
                directoryName = "MT3D" + "00" + (index + 1).ToString() + "Result";
            }
            else if (index >= 10 && index <= 99)
            {
                directoryName = "MT3D" + "0" + (index + 1).ToString() + "Result";
            }
            else if (index >= 100 && index <= 999)
            {
                directoryName = "MT3D" + (index + 1).ToString() + "Result";
            }
            else if (index >= 1000 || index < 0)
            {
                return "";
            }


            return directoryName;

        }

        /// <summary>
        /// 返回MT3D各个污染物对应的 配置文件的名称
        /// <param name="index"></param>
        /// <returns></returns>
        public static string GetMT3DResultPmIniName(int index)
        {
            string pmName = "pm" + (index + 1).ToString() + ".ini";

            return pmName;

        }


        public static string GetInputFileName(int index)
        {
            string directoryName = "";

            if (index >= 0 && index <= 9)
            {
                directoryName = "MT3D" + "00" + (index + 1).ToString() + ".ucn";
            }
            else if (index >= 10 && index <= 99)
            {
                directoryName = "MT3D" + "0" + (index + 1).ToString() + ".ucn";
            }
            else if (index >= 100 && index <= 999)
            {
                directoryName = "MT3D" + (index + 1).ToString() + ".ucn";
            }
            else if (index >= 1000 || index < 0)
            {
                return "";
            }


            return directoryName;
        
        
        }




    }



}
